package org.ecbox.sdk.dict;

/**
 * 付款类型
 * 
 * File: PayType.java<br/>
 * Description: <br/>
 * 
 * Copyright: Copyright (c) 2012 ecbox.com<br/>
 * Company: ECBOX,Inc.<br/>
 * 
 * @author chenxiaochun
 * @date 2013-5-8
 * @version 1.0
 */
public enum PayType {

  CASH("CASH", "现金", new PaymentMode[] { PaymentMode.DELIVERY_AFTER_PAY, PaymentMode.SERVE_AFTER_PAY }), //
  CARD("CARD", "刷卡", new PaymentMode[] { PaymentMode.DELIVERY_AFTER_PAY, PaymentMode.SERVE_AFTER_PAY }), //
  ALIPAY("ALIPAY", "支付宝", new PaymentMode[] { PaymentMode.DELIVERY_AFTER_PAY, PaymentMode.SERVE_AFTER_PAY }), //
  // 余额支付的方式暂不支持，因为会涉及到余额和其他类型支付的组合问题，余额的积分问题等等
  PREPAID("PREPAID", "预存款", new PaymentMode[] { PaymentMode.DELIVERY_AFTER_PAY, PaymentMode.SERVE_AFTER_PAY }); //

  private String code;

  private String name;

  private PaymentMode[] mode;

  private PayType(String code, String name, PaymentMode[] mode) {
    this.code = code;
    this.name = name;
    this.mode = mode;
  }

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public PaymentMode[] getMode() {
    return mode;
  }

  public void setMode(PaymentMode[] mode) {
    this.mode = mode;
  }

}
